package io.renren.modules.medical.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
/**
 * 
 * 
 * @author luosheng
 * @email luoshengshuai@foxmail.com
 * @date 2023-03-31 10:14:39
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("visit_record")
public class VisitRecordEntity extends QueryPageBaseEntity {
	private static final long serialVersionUID = 1L;
	@NotBlank(message = "随访标题不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String visitTitle;

	/**
	 * 随访次数
	 */
	@NotNull(message = "添加时随访次数不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long visitCount;

	/**
	 * 随访状态[0:未完成,1:已完成]
	 */
	@Null(message = "添加时不能指定随访状态", groups = {AddGroup.class, UpdateGroup.class})
	private Integer visitStatus;

}
